FROM williamyeh/java8
ENV LANG C.UTF-8
ADD erp-user.jar erp-user.jar
ENTRYPOINT ["java","-jar","-Xms3072m","-Xmx3072m","-Xmn1024m","-XX:+UseParNewGC","-XX:MetaspaceSize=256m","-XX:MaxMetaspaceSize=256m","-XX:+UseConcMarkSweepGC","-XX:+DisableExplicitGC","-XX:+PrintGCDetails","-Xloggc:gc.log","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=./jvm.dump","erp-user.jar","--spring.profiles.active=dev"]
#ENTRYPOINT ["java","-jar","-Xms8192m","-Xmx8192m","-Xmn5120m","-XX:+UseParNewGC","-XX:MetaspaceSize=256m","-XX:MaxMetaspaceSize=256m","-XX:+UseConcMarkSweepGC","-XX:+DisableExplicitGC","-XX:+PrintGCDetails","-Xloggc:gc.log","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=./","erp-user.jar","--spring.profiles.active=pro"]
